home *** CD-ROM | disk | FTP | other *** search
- Path: news.cc.sunysb.edu!usenet
- From: gene@calph.physics.sunysb.edu (Eugene Tyurin)
- Newsgroups: comp.lang.c
- Subject: Re: Help:what is wrong this code?
- Date: 05 Apr 1996 20:42:22 -0500
- Organization: Institute for Theoretical Physics, Stony Brook University
- Sender: gene@calph.physics.sunysb.edu
- Message-ID: <ht4tqyku0x.fsf@calph.physics.sunysb.edu>
- References: <4k3p3q$n76@brahms.udel.edu>
- NNTP-Posting-Host: calph.physics.sunysb.edu
- In-reply-to: yuehong@brahms.udel.edu's message of 5 Apr 1996 13:34:34 -0500
- X-Newsreader: Gnus v5.0.15
-
- >>>>> "Yue-hong" == Yue-hong Zheng <yuehong@brahms.udel.edu> writes:
-
- Yue-hong> Why it give me 0.0000?
-
- Yue-hong> #include <stdio.h>
- Yue-hong> main () {
- Yue-hong> double a=9.008;
- Yue-hong> printf("%f\n",sqrt(a));
- Yue-hong> return 0; }
-
- Because you don't have #include <math.h>
-
- --
- Eugene Tyurin - PhD student at ITP, Stony Brook U.
- http://www.physics.sunysb.edu/~gene/
-